package com.bdsy.business.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bdsy.business.dao.ShopTypeMapper;
import com.bdsy.business.model.ShopType;
import com.bdsy.business.service.ShopTypeService;

@Service("shopTypeService")
public class ShopTypeServiceImpl implements ShopTypeService {

	@Autowired
	ShopTypeMapper shopTypeMapper;
	
	@Override
	public List<Map> selectShopTypeInfo() {
		List<Map> shopTypeList = shopTypeMapper.selectShopTypeInfo();
		return shopTypeList;
	}

	@Override
	public boolean add(ShopType shopType) {
		int result = shopTypeMapper.insert(shopType);
		return result>0?true:false;
	}

	@Override
	public List<ShopType> shopTypeInfo() {
		List<ShopType> shopTypeInfo = shopTypeMapper.shopTypeInfo();
		return shopTypeInfo;
	}

}
